package com.inews.business.service;

import java.util.Map;

import org.springframework.data.domain.Page;

import com.inews.business.entity.ProductType;

public interface ProductTypeService {
	
	/**
	 * 分页查询产品类别.
	 *
	 * @param filterParams the filter params
	 * @param pageNumber the page number
	 * @param pageSize the page size
	 * @param sortType the sort type
	 * @return the product type
	 */
	public Page<ProductType> getProductType(Map<String, Object> filterParams, int pageNumber, int pageSize,
			String sortType);
	
	
	/**
	 * 根据产品类别Id获取产品类别.
	 *
	 * @param typeId the type id
	 * @return the product type
	 */
	public ProductType findProductTypeById(Integer typeId);
	
	
	/**
	 * 保存产品类别.
	 *
	 * @param productType the product type
	 */
	public void saveProductType(ProductType productType);

}
